package com.wochao.web.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wochao.model.entity.ApartmentInfo;
import com.wochao.web.admin.vo.apartment.ApartmentDetailVo;
import com.wochao.web.admin.vo.apartment.ApartmentItemVo;
import com.wochao.web.admin.vo.apartment.ApartmentQueryVo;
import com.wochao.web.admin.vo.apartment.ApartmentSubmitVo;


public interface ApartmentInfoService extends IService<ApartmentInfo> {

    /**
     * 保存或更新公寓信息
     *
     * @param apartmentSubmitVo
     */
    void saveOrUpdateApartment(ApartmentSubmitVo apartmentSubmitVo);

    /**
     * 根据条件分页查询公寓列表
     *
     * @param page
     * @param queryVo
     * @return
     */
    IPage<ApartmentItemVo> pageQueryApartmentItem(IPage<ApartmentItemVo> page, ApartmentQueryVo queryVo);

    /**
     * 根据ID获取公寓详细信息
     *
     * @param id
     * @return
     */
    ApartmentDetailVo getApartmentDetailById(Long id);

    /**
     * 根据公寓ID删除公寓信息
     *
     * @param id
     */
    void removeApartmentById(Long id);
}
